<include file="Public:common" />
<div class="easyui-layout" fit="true">
    <div region="north" style="height: 70px;border-bottom: none;">
        <form id="bt_import_search_from">
            <table style="height: 100%;">
                <tr>
                    <td>手册号</td>
                    <td>
                        <input id="mm" class="easyui-combobox" name="Q_Custml_like"  style="width: 100px;" 
    data-options="valueField:'手册名称',textField:'手册名称',url:'__ROOT__/import/getmData'" /> 
                    </td>
                    <td>
                        <select class="easyui-combobox" data-options="panelHeight:'auto',editable:false,onChange:function(o,n){
                                if(o == '发票号'){$('#bt_import_input_name').attr('name','Q_inv_like')}else{
                                $('#bt_import_input_name').attr('name','Q_bgdh_like')
                                }
                                }">
                            <option>报关单号</option>
                            <option>发票号</option>
                        </select>
                    </td>
                    <td>
                        <input  type="text" name="Q_bgdh_like" id="bt_import_input_name"></td>
                    <td>品名</td>

                    <td>
                         <select id="Itemno" name="Q_Itemno_like" style="width:150px;"></select>
                    </td>

                    <td>运单号</td>
                    <td>
                        <input  type="text" name="Q_trackno_like"></td>
                    <td rowspan="2">
                        <a href="javascript:void(0)" class="easyui-linkbutton" id="bt_import_search_btn">查询</a>
                        <a href="javascript:$('#bt_import_search_from').form('clear');" class="easyui-linkbutton">清空</a>
                    </td>
                </tr>
                <tr>
                    <td>
                        数量 <= </td>
                            <td>
                                <input  type="number" name="Q_QTY_ELT" style="width: 100px;"></td>
                            <td>邮件时间</td>

                            <td>
                                <input  class="easyui-datebox" type="text" name="Q_Mdate_EGT" value="{:date('Y-m-d',time()-30000000)}" maxDate="#F{ $dp.$D('bt_import_input_Mdate_ed')||'2014-10-1'}" id="bt_import_input_Mdate_st">
                            </td>
                            <td align="center">-</td>
                            <td>
                                <input class="easyui-datebox" type="text" name="Q_Mdate_ELT" }minDate="#F{ $dp.$D('bt_import_input_Mdate_st')}" id="bt_import_input_Mdate_ed"></td>

                        </tr>
                    </table>
                </form>
            </div>
            <div region="center"class="font-size:100px;" >
                <table id="bt_import_grid" ></table>
            </div>
            <div id="dd" ></div>
        </div>

        <script>
            $('#Itemno').combogrid({
                panelWidth:150,
                fitColumns:true,
                idField:'id',
                textField:'name',
                url:_ROOT_ + '/import/comboData',
                columns:[[
                    {field:'id',title:'ID',width:10},
                    {field:'name',title:'全称',width:20},
                ]]
            });
        </script>

        <html:script pack="BT.import" src="/modual/import.js"/>